package com.novel.entiy.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author tanghao
 * @date 2022/4/7
 */
@Data
public class ReadVO {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "上一章id")
    private Long previousChapterId;

    @ApiModelProperty(value = "上一章名称")
    private String previousChapterName;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "下一章id")
    private Long nextChapterId;

    @ApiModelProperty(value = "下一章名称")
    private String nextChapterName;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "章节id")
    private Long id;

    /**
     * 文章id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "小说id")
    private Long novelId;

    /**
     * 章节名称
     */
    @ApiModelProperty(value = "章节名称")
    private String chapterName;

    /**
     * 章节号
     */
    @ApiModelProperty(value = "章节号")
    private Integer chapterNo;

    /**
     * 章节字数
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "章节字数")
    private Long wordNums;

    /**
     * 章节内容-html
     */
    @ApiModelProperty(value = "章节内容-html")
    private String chapterContentHtml;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    /**
     * 更新时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updatedTime;
}
